﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 业务系统的附件记录信息
    /// </summary>
    [Serializable]
    public class t_attachment
    {
        #region 数据表名称
        public static readonly string TableName = "t_attachment";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 记录id
            /// </summary>
            public static readonly string att_id = @"att_id";

            /// <summary>
            /// 附件初始名称
            /// </summary>
            public static readonly string proj_code = @"att_file_name_original";

            /// <summary>
            /// 附件当前名称
            /// </summary>
            public static readonly string att_file_name_current = @"att_file_name_current";

            /// <summary>
            /// 附件后缀
            /// </summary>
            public static readonly string att_file_sufix = @"att_file_sufix";

            /// <summary>
            /// 附件上传用户ID
            /// </summary>
            public static readonly string att_upload_user_id = @"att_upload_user_id";

            /// <summary>
            /// 数据字节
            /// </summary>
            public static readonly string att_bytes = @"att_bytes";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 项目ID
        /// </summary>
        public virtual string att_id { get; set; }

        /// <summary>
        /// 附件初始名称
        /// </summary>
        public virtual string att_file_name_original { get; set; }

        /// <summary>
        /// 附件当前名称
        /// </summary>
        public virtual string att_file_name_current { get; set; }

        /// <summary>
        /// 附件后缀
        /// </summary>
        public virtual string att_file_sufix { get; set; }

        /// <summary>
        /// 附件上传用户
        /// </summary>
        public virtual t_sys_user att_upload_user { get; set; }

        /// <summary>
        /// 数据字节
        /// </summary>
        public virtual byte[] att_bytes { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}
